﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace HamcoWcs.DAL.Migrations
{
    public partial class A19 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "HandOffShelf",
                table: "sub_task_bak",
                type: "varchar(100)",
                maxLength: 100,
                nullable: true,
                defaultValue: "",
                comment: "中转储位")
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AddColumn<bool>(
                name: "IsNeedSection",
                table: "sub_task_bak",
                type: "tinyint(1)",
                nullable: false,
                defaultValue: false,
                comment: "是否分段");

            migrationBuilder.AddColumn<string>(
                name: "HandOffShelf",
                table: "sub_task",
                type: "varchar(100)",
                maxLength: 100,
                nullable: true,
                defaultValue: "",
                comment: "中转储位")
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AddColumn<bool>(
                name: "IsNeedSection",
                table: "sub_task",
                type: "tinyint(1)",
                nullable: false,
                defaultValue: false,
                comment: "是否分段");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "HandOffShelf",
                table: "sub_task_bak");

            migrationBuilder.DropColumn(
                name: "IsNeedSection",
                table: "sub_task_bak");

            migrationBuilder.DropColumn(
                name: "HandOffShelf",
                table: "sub_task");

            migrationBuilder.DropColumn(
                name: "IsNeedSection",
                table: "sub_task");
        }
    }
}
